package test.hibernate.dao;

import java.util.List;

import org.hibernate.criterion.Restrictions;

import test.CompanyInfo;
import test.hibernate.CompanyInfoDAO;


/**
 * <p>Hibernate DAO layer for EdinicaMerkas</p>
 * <p>Generated at Thu Feb 25 19:39:57 CET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 * @see http://www.hibernate.org/328.html
 */
public class CompanyInfoHibernateDAO extends
		AbstractHibernateDAO<CompanyInfo, Long> implements
		CompanyInfoDAO {

	/**
	 * Find EdinicaMerka by edinicaMerka
	 */
	public List<CompanyInfo> findByUrl(String url) {
		return findByCriteria(Restrictions.eq("url", url));
	}
	
	/**
	 * Find EdinicaMerka by edinicaMerkaLabel
	 */
	public List<CompanyInfo> findByEdinicaMerkaLabel(String edinicaMerkaLabel) {
		return findByCriteria(Restrictions.eq("edinicaMerkaLabel", edinicaMerkaLabel));
	}
	
	/**
	 * Find EdinicaMerka by edit
	 */
	public List<CompanyInfo> findByUrlPattern(String urlPattern) {
		return findByCriteria(Restrictions.eq("urlPattern", urlPattern));
	}

        /**
	 * Find EdinicaMerka by edit
	 */
	public List<CompanyInfo> findAllReqDef() {
		return findAll();
	}
	

}
